@extends('admin_system/public/layout')
@section('content')
    <div class="col-xs-12">
        <p class="float-left"><strong>当前位置：</strong>企业管理>>企业编辑、添加</p>

        {{--返回按钮--}}
        <button type="button" class="btn btn-default float-right back" aria-label="Left Align">
            <span class="glyphicon glyphicon-arrow-left back" aria-hidden="true"></span>
            <span>返回</span>
        </button>
    </div>

    <div class="col-xs-12"></div>

    <div class="content-box col-xs-12 mt20 pb20 pt20">
        <form class="col-xs-4" action="{{asset('/admin_system/company/company_update')}}" method="post" enctype="multipart/form-data">

            <input type="hidden" name="company_id" value="{{$company->company_id}}">
            {{ csrf_field() }}
            <div class="form-group">
                <label>企业名称</label>
                <input name="company_name" class="form-control" value="{{$company->company_name}}" required>
            </div>

            <div class="form-group">
                <label>企业端口数量</label>
                <input name="vip_port" class="form-control" value="{{$company->vip_port}}" required>
            </div>
            <div class="form-group">
                <label>企业剩余端口</label>
                <input name="surplus_port" class="form-control" value="{{$company->surplus_port}}" required>
            </div>

            <div class="form-group">
                <label>企业会员结束时间</label>
                <input name="vip_end_date" class="form-control" value="{{$company->vip_end_date}}" required type="date">
            </div>

            <div class="form-group">
                <label>企业会员开通时间</label>
                <input name="vip_begin_date" class="form-control" value="{{$company->vip_begin_date}}" required type="date">
            </div>

            <div class="form-group">
                <label>企业管理员手机号</label>
                <input class="form-control" name="mobile" value="{{$company->mobile}}" placeholder="如管理员不在会员列表中，请先到会员中心添加用户">
                <input type="hidden" name="manager_user_id" value="{{$company->manager_user_id}}">
            </div>



            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>


@endsection
